<?php 
namespace Emos\Field;

class Separator extends AbstractControl {
    protected $content;
    
    public function __construct($content=null) {
        $this->content = $content;
    }

    public function update() {
        return null;
    }
    
    public function html() {
        if($this->content === null) {
            return "<hr />";            
        }
        else {
            return "<div class='separator'>{$this->content}</div>";
        }
    }
    
    public function getDdlFields() {
        return array();
    }
}